package com.zhengxiang.onlinexamination.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhengxiang.onlinexamination.base.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * 考试结果(ExamResult)实体类
 *
 * @author makejava
 * @since 2023-04-11 20:29:18
 */
@Data
public class ExamResult extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -77525132260505216L;

    @TableId(type = IdType.AUTO)
    private Integer examResultId;
    /*用户id*/
    private Integer userId;
    /*用户名*/
    private String userName;
    /*卷名*/
    private String examPaperName;
    /*试卷id*/
    private Integer examPaperId;
    /*待考试卷id*/
    private Integer waitPaperId;
    /*试卷内容*/
    private String paperContent;
    /*考试得分*/
    private Integer resultScore;
    /*及格分*/
    private Integer passMark;
    /*是否及格  1及格 -1未及格*/
    private Integer isPass;

    /*考试用时*/
    private Integer resultTime;
    /*正确题数*/
    private Integer correctQuestion;
    /*正确题数id集合*/
    private String correctQuesitonId;
    /*错误题数*/
    private Integer errorQuestion;
    /*错误题数id*/
    private String errorQuestionId;
    /*创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    /*待考试卷对象*/
    @TableField(exist = false)
    private WaitPaper waitPaper;
    /*试卷对象*/
    @TableField(exist = false)
    private ExamPaper examPaper;

}

